import request from '@/utils/request'

// 查询审批列表
export function listVetting(query) {
  return request({
    url: '/lobby/vetting/list',
    method: 'get',
    params: query
  })
}

// 查询审批详细
export function getVetting(id) {
  return request({
    url: '/lobby/vetting/' + id,
    method: 'get'
    
  })
}

// 新增审批
export function addVetting(data) {
  return request({
    url: '/lobby/vetting',
    method: 'post',
    data: data
  })
}

// 修改审批
export function updateVetting(data) {
  return request({
    url: '/lobby/vetting',
    method: 'put',
    data: data
  })
}

// 删除审批
export function delVetting(id) {
  return request({
    url: '/lobby/vetting/' + id,
    method: 'delete'
  })
}
